import request from '@/axios'

export const saveDataApi = (data) => {
  return request.post({ url: '/api/sysGenPage/save', data })
}

export const deleteDataApi = (data) => {
  return request.post({ url: '/api/sysGenPage/delete', data })
}

export const updateDataApi = (data) => {
  return request.post({ url: '/api/sysGenPage/update', data })
}

export const selectPageApi = (data) => {
  return request.post({ url: '/api/sysGenPage/selectPage', data })
}

export const getPageOptionsApi = (data) => {
  return request.post({ url: '/api/sysGenPage/getPageOptions', data })
}

export const selectPageByIdApi = (data) => {
  return request.post({ url: '/api/sysGenPage/selectPageById', data })
}

export const selectByModelApi = (data) => {
  return request.post({ url: '/api/sysGenPage/selectByModel', data })
}

export const saveByModelApi = (data) => {
  return request.post({ url: '/api/sysGenPage/saveByModel', data })
}

export const updateByModelApi = (data) => {
  return request.post({ url: '/api/sysGenPage/updateByModel', data })
}

export const deleteByModelApi = (data) => {
  return request.post({ url: '/api/sysGenPage/deleteByModel', data })
}

export const publishApi = (data) => {
  return request.post({ url: '/api/sysGenPage/publish', data })
}
